package com.shuai.user.domain.request;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.validation.annotation.Validated;

import java.io.Serializable;


@Data
@Validated
public class UserSessionAddRequest implements Serializable {
    /**
     * 当前会话的名字
     */
    @Length(max = 20, message = "会话名字不能超过20个字符")
    private String sessionName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}